function shownotifications(json) {
             
	var str='';
		
  	for (var i = 0; i < numposts_notification; i++) {
    	var entry = json.feed.entry[i];
    	var posttitle = entry.title.$t;
		var pcm;
    	var posturl;
    	if (i == json.feed.entry.length) break;
    	for (var k = 0; k < entry.link.length; k++) {
      		if (entry.link[k].rel == 'alternate') {
        		posturl = entry.link[k].href;
        		break;
      		}
    	}
		
		for (var k = 0; k < entry.link.length; k++) {
      		if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {
        		pcm = entry.link[k].title.split(" ")[0];
        		break;
      		}
    	}
		
    	if ("content" in entry) {
      		var postcontent = entry.content.$t;}
    	else
    	if ("summary" in entry) {
      		var postcontent = entry.summary.$t;}
    	else var postcontent = "";
    	
    	postdate = entry.published.$t;
	
	str += '<li><a href="'+posturl+'">'+posttitle+'</a></li>';
	
}
var featured = document.getElementById("notification");
featured.innerHTML =  '<ul>'+str+'</ul>';

}
document.write("<script src=\""+home_page+"feeds/posts/default/-/"+label_notification+"?max-results="+numposts_notification+"&orderby=published&alt=json-in-script&callback=shownotifications\"><\/script>");